package y24.m1.homework;

import java.awt.geom.AffineTransform;

public class Test6 {
    static class Point {
        public int x;
        public int y;
        public Point(int x, int y) {
            this.x = x;
            this.y = y;
        }
    }
    public static Point transform(Point point) {
        Point newPoint = new Point(point.x, -point.y);
        return newPoint;
    }
    public static void main(String[] args) {
        Point point = new Point(1, 2);
        Point newPoint = transform(point);
        System.out.println("坐标变化前：(" + point.x + ", " + point.y + ")");
        System.out.println("坐标变化后：(" + newPoint.x + ", " + newPoint.y + ")");
    }
}
